﻿
<div>
	<!-- 隐藏层 -->
	<div id="overlay"></div>
	<div id="win">
		<h2><span id="close" onclick="CloseWin()">×</span></h2>
				<p>确认要删除吗？</p>
				<button onclick="ReturnParent()">确认</button>
				<button onclick="CloseWin()">放弃</button>
				<div id="wintmp" style="display:none;"></div>
		</form>
	</div>
	<!-- 隐藏层结束 -->
	<div class="divnewadd">
		<div class="divnewadd_a">{{itemname|safe}}</div>
		<div class="divnewadd_b"><a href="/budget/itemchange/{{itemid}}_0/">新增</a></div>
	</div>
	<!-- 表格 -->
	<div class="divtable">
	<table class="body2_datatable" id="tblSort">
		<thead>
			<tr>
				<th width=15% onclick="sortTable('tblSort', 0)" style="cursor:pointer">产品名称</th>
				<th width=10% onclick="sortTable('tblSort', 1,'int')" style="cursor:pointer">单价</th>
				<th width=5% onclick="sortTable('tblSort', 2,'int')" style="cursor:pointer">数量</th>
				<th width=10% onclick="sortTable('tblSort', 3,'int')" style="cursor:pointer">总价</th>
				<th width=5% onclick="sortTable('tblSort', 4,'int')" style="cursor:pointer">满意度</th>
				<th width=10% onclick="sortTable('tblSort', 5)" style="cursor:pointer">品牌</th>
				<th width=10% onclick="sortTable('tblSort', 6)" style="cursor:pointer">商场</th>
				<th width=30%>其他信息</th>
				<th width=5% >修改</th>
			</tr>
		</thead>
		<tbody id="tblbody">
			{% for idx,itamname,price,num,priceall,satisfy,brand,market,otherinfo in itemDetail %}
				{% if forloop.counter|divisibleby:"2"  %}
					<tr class="altrow">
				{% else %}
					<tr>
				{% endif %}
			  <td>{{itamname}}</td>
			  <td>{{price}}</td>
			  <td>{{num}}</td>
			  <td>{{priceall}}</td>
			  <td>{{satisfy}}</td>
			  <td>{{brand}}</td>
			  <td>{{market}}</td>
			  <td width=210px><pre>{{otherinfo}}</pre></td>
			  <td>
			  	<a href="/budget/itemchange/{{itemid}}_{{idx}}/">改</a> &nbsp
			  	<a onclick="OpenWin({{itemid}},{{idx}})" style="cursor: pointer;">删</a>
			  </td>
			  </tr>
			{% endfor %}
		</tbody>
	</table>
	</div>
	<!-- 表格结束 -->
</div>